package com.yuan.order.repository;

import com.yuan.order.dataobject.OrderMaster;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * 订单
 *
 * @Author yuan
 * @Date 2021/2/25 13:28
 */
public interface OrderMasterRepository extends JpaRepository<OrderMaster, String> {
    /**
     * 分页显示，通过买家的openid查找他的订单信息
     *
     * @param buyerOpenid
     * @param pageable
     * @Author yuan
     * @Date 2021/2/25 13:30
     */
    Page<OrderMaster> findByBuyerOpenid(String buyerOpenid, Pageable pageable);
}
